
#ifndef _MPGFILEDECODER_H
#define _MPGFILEDECODER_H

#ifdef __cplusplus
extern "C"{
#endif

#include <sys_config.h>
#include <api/libmp/pe.h>

#define MPG_PRINTF(...)	do{}while(0)	 	 //libc_printf

BOOL MPGFileDecoderGetCap(t2DecoderCap *DecoderCap);
BOOL MPGFileDecoderInit(DEC_INIT_PAR DecInitPar);
BOOL MPGFileDecoder(mp_callback_func video_cb);
BOOL MPGFileDecoderReset(void); 
DWORD MPGFileDecoderGetPlayTime(void);
DWORD MPGFileDecoderGetLastErrMsg(void);
int MPGGetTotalPlayTime(void);
DWORD   MpgFileGetPlayPoint(PDEC_PLAYPOINT_INFO pPlayPoint);
BOOL    MpgFileSetPlayPoint(DEC_PLAYPOINT_INFO StartPoint, DEC_PLAYPOINT_INFO EndPoint);
DWORD   MpgFileGetStreamInfo(PDEC_STREAM_INFO pDecStreamInfo);
DWORD   MpgFileGetChapterInfo(PDEC_CHAPTER_INFO pDecChapterInfo);
BOOL MPGFileDecoderSetNoSyncMode(int flag);
DWORD MPGDecoderGetPlayTime();
DWORD MpgDecoderGetStreamInfo();
DWORD MpgSetAVSyncDelay(UINT32 stream_type, INT32 time_ms);

enum Output_Frame_Ret_Code vdec_m3327_de_mp_request_ext(void *dev,void *parameter);
BOOL vdec_m3327_de_mp_release_ext(void *dev,UINT8 uidx,UINT8 frm_array_idx);
#ifdef __cplusplus
}
#endif

#endif


